<include file="Public:top" />
<script language="JavaScript">
<!--
function fleshVerify(){
//重载验证码
var timenow = new Date().getTime();
$('verifyImg').src= '__URL__/verify/'+timenow;
}	
//-->
function save(){
    var inputs = $("#login :input").validator({ lang: 'zh',position: 'right left',offset: [-12, 0],message: '<div><em/></div>' });
    if(inputs.data("validator").checkValidity()){
		var queryString = $('#login').serialize();
		$.post('__URL__/changePwd/',queryString,function(data){
			
			$.messager.alert('提示信息',data.info,'info');
			$.messager.show({
				title:'提示信息',msg:data.info,timeout:2000,showType:'slide'
			});
		},'json')	
	}
	
}
</script>
<div id="main" class="" >
	<form method='post' name="login" action="__URL__/changePwd/" id="login">
		<table id="checkList" class="login" cellpadding=0 cellspacing=0 >
			<tr>
				<td height="5" colspan="2" class="topTd" ></td>
			</tr>
			<tr class="row" >
				<Th colspan="2" class="tCenter space">修改密码</th>
			</tr>
			<tr>
				<td height="5" colspan="2" class="topTd" ></td>
			</tr>
			<tr class="row" >
				<td class="tRight">旧密码：</td>
				<td>
					<input type="password" class="medium bLeftRequire" name="oldpassword"></td>
			</tr>
			<tr class="row" >
				<td class="tRight">新密码：</td>
				<td>
					<input type="password" class="medium bLeftRequire" name="password"></td>
			</tr>
			<tr class="row" >
				<td class="tRight">确认新密码：</td>
				<td>
					<input type="password" class="medium bLeftRequire" name="repassword"></td>
			</tr>
			<tr class="row" >
				<td class="tRight">验证码：</td>
				<td>
					<input type="text" class="small bLeftRequire" name="verify">
					<img SRC="__URL__/verify/" BORDER="0" ALT="点击刷新验证码" id="verifyImg" onClick="fleshVerify()" style="cursor:pointer" align="absmiddle"></td>
			</tr>
			<tr class="row" >
				<td class="tCenter" align="justify" colspan="2">
					<input  type="button" onClick="save()" class="hMargin submit small" value="确 认" alt="确认" />
					<input  type="button" onClick="history.back()" class="hMargin submit small" value="取 消" alt="取消" />
				</td>
			</tr>
			<tr>
				<td height="5" colspan="2" class="bottomTd" ></td>
			</tr>
		</table>
	</form>
</div>

<include file="Public:footer" />